function starclick(obj) {
	  window.open()
      var id = obj.id;
      var index = id.indexOf('_');
      var num = id.substring(index+1, id.length);
      
	  lightUP(num);
	  
	  
}

function lightUP(index) {

      for (i=1; i<6; i++) {
            var string = "star_"+i;
            var element = document.getElementByID(string);
			
            if (i<= index) {
                  element.src = "redStar.png";
            } 
			
			else {
                  element.src = "grayStar1.png";
            }
      }

}